package com.common.common.option;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分页参数
 *
 * @author liujun
 * @date 2024/10/10
 */
@Data
@NoArgsConstructor
public class PageOption {
    private Long currentPage;
    private Long pageSize;
    private Long total;

    public PageOption(Long currentPage, Long pageSize, Long total) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.total = total;
    }

    public PageOption(Long currentPage, Long pageSize) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }

}
